﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Account.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div id="cornerfirst">
            <div class="inside">
            <asp:Label ID="Label9" runat="server" CssClass="style6" Font-Size="13pt" ForeColor="White" Text="Đăng ký thông tin tài khoản" Font-Bold="False"></asp:Label>
            </div>
            <div class="topleft"></div><div class="topright"></div>
        </div>
        <div id="cornerthird">
        <div class="inside">
        <table width="100%">
            <tr>
                <td class="style8" colspan="2" height="50" width="200">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: right" width="200">
                    <asp:Label ID="Label10" runat="server" CssClass="style3" Font-Size="12pt" 
                        ForeColor="#66CCFF" Text="Thông tin đăng nhập"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="background-color: #EFEFEF; text-align: right;" width="200">
                    <asp:Label ID="Label1" runat="server" Text="Tên đăng nhập:" ForeColor="#003300"></asp:Label>
                </td>
                <td style="background-color: #EFEFEF">
                    <asp:TextBox ID="txtUserName" runat="server" 
                        Width="200px" AutoPostBack="True" OnTextChanged="txtUserName_TextChanged"></asp:TextBox>&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtUserName" Display="Dynamic" 
                        ErrorMessage="Bạn chưa nhập tên đăng nhập!" ForeColor="Red"></asp:RequiredFieldValidator>&nbsp;
                    <asp:Label ID="lblCheck" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="text-align: right" width="200">
                    <asp:Label ID="Label2" runat="server" Text="Mật khẩu:" ForeColor="Black"></asp:Label>
                </td>
                <td class="style8">
                    <asp:TextBox ID="txtPassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtPassword" Display="Dynamic" 
                        ErrorMessage="Yêu cầu nhập mật khẩu!" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="background-color: #EFEFEF; text-align: right;" width="200">
                    <asp:Label ID="Label3" runat="server" Text="Nhập lại mật khẩu:" 
                        ForeColor="#003300"></asp:Label>
                </td>
                <td style="background-color: #EFEFEF">
                    <asp:TextBox ID="txtRePassword" runat="server" Width="200px" 
                        TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtRePassword" ControlToValidate="txtPassword" 
                        Display="Dynamic" ErrorMessage="Mật khẩu không tương thích!" ForeColor="Red"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style8" colspan="2" width="200">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: right" width="200">
                    
                    
                    <asp:Label ID="Label11" runat="server" CssClass="style3" Font-Size="12pt" 
                        ForeColor="#66CCFF" Text="Thông tin cá nhân"></asp:Label>
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td style="background-color: #EFEFEF; text-align: right;" width="200">
                    <asp:Label ID="Label4" runat="server" Text="Họ Tên đầy đủ:" ForeColor="#003300"></asp:Label>
                </td>
                <td style="background-color: #EFEFEF">
                    <asp:TextBox ID="txtFullName" runat="server" Width="200px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtFullName" Display="Dynamic" 
                        ErrorMessage="Xin nhập đầy đủ họ tên!" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="text-align: right" width="200">
                    <asp:Label ID="Label5" runat="server" Text="Ngày sinh:" ForeColor="Black"></asp:Label>
                </td>
                <td class="style8">
                    <asp:DropDownList ID="dlstNgay" runat="server" Width="50px">
                    </asp:DropDownList>
                    <asp:DropDownList ID="dlstThang" runat="server" Width="50px">
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="dlstNam" runat="server" Width="92px">
                    </asp:DropDownList>&nbsp;
                    <asp:CustomValidator ID="CustomValidator2" runat="server" 
                        ControlToValidate="dlstNam" Display="Dynamic" 
                        ErrorMessage="Ngày sinh không hợp lệ!" ForeColor="Red" 
                        onservervalidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td style="background-color: #EFEFEF; text-align: right;" width="200">
                    <asp:Label ID="Label6" runat="server" Text="Địa chỉ:" ForeColor="#003300"></asp:Label>
                </td>
                <td style="background-color: #EFEFEF">
                    <asp:TextBox ID="txtAddress" runat="server" Width="198px" TextMode="MultiLine"></asp:TextBox>
                </td>
               
            </tr>
            <tr>
                <td style="text-align: right; height: 31px;" width="200">
                    <asp:Label ID="Label7" runat="server" Text="Email:" ForeColor="Black"></asp:Label>
                </td>
                <td class="style8" style="height: 31px">
                    <asp:TextBox ID="txtEmail" runat="server" Width="198px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="txtEmail" Display="Dynamic" 
                        ErrorMessage="Email không được để trống!" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtEmail" Display="Dynamic" 
                        ErrorMessage="Địa chỉ Email không hợp lệ!" ForeColor="Red" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="background-color: #EFEFEF; text-align: right;" width="200">
                    <asp:Label ID="Label8" runat="server" Text="Tài khoản ngân hàng:" ForeColor="#003300"></asp:Label>
                </td>
                <td style="background-color: #EFEFEF">
                    <asp:TextBox ID="txtBank" runat="server" Width="198px" ></asp:TextBox>
                </td>
               
            </tr>
            <tr>
                <td style="text-align: right" width="200">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: right" width="200">
                    &nbsp;</td>
                <td class="style8">
                    <asp:Button ID="btnSend" runat="server" 
                    Text="Submit" onclick="btnSend_Click" />
                </td>
            </tr>
        </table>
        </div>
        <div class="bottomleft"></div><div class="bottomright"></div>
        </div>
</asp:Content>

